



local 场景类_帮战 = class(窗口逻辑)
local insert = table.insert
local remove = table.remove
local floor = math.floor
local tp,zts,zts1

function 场景类_帮战:初始化(根)
    self.ID = 317
    self.x = 290+(全局游戏宽度-800)/2
    self.y = 65
    self.xx = 0
    self.yy = 0
    self.注释 = "攻略"
    self.可视 = false
    self.鼠标 = false
    self.焦点 = false
    self.可移动 = true
    local 按钮 = 根._按钮
    local 自适应 = 根._自适应
    local  资源= 根.资源
    self.资源组 = {
        [1] = 根.资源:载入("帮战.png","加密图片"),

    }


    self.翻页 =false
    self.窗口时间 = 0
    tp = 根
    zts = tp.字体表.普通字体
    zts1 = tp.字体表.描边字体

end




function 场景类_帮战:打开(内容)
  if self.可视 then

        self.可视 = false

  else
       self.数据=内容


        if  self.x > 全局游戏宽度 then
        self.x = 82+(全局游戏宽度-800)/2
        end
        insert(tp.窗口_,self)
        tp.运行时间 = tp.运行时间 + 1
        self.窗口时间 = tp.运行时间
        self.可视 = true
  end
 end
function 场景类_帮战:显示(dt,x,y)
    self.焦点 = false

    self.资源组[1]:显示(self.x,self.y)
zts:置颜色(0xFFFFFFFF):显示(self.x+32,self.y+53,self.数据[2].名称)
zts:置颜色(0xFFFFFFFF):显示(self.x+10,self.y+90,"积分："..self.数据[2].积分)
zts:置颜色(0xFFFFFFFF):显示(self.x+10,self.y+120,"参加人数："..self.数据[2].参加人数)
zts:置颜色(0xFFFFFFFF):显示(self.x+10,self.y+150,"击杀人数："..self.数据[2].击杀人数)
zts:置颜色(0xFFFFFFFF):显示(self.x+190,self.y+53,self.数据[1].名称)
zts:置颜色(0xFFFFFFFF):显示(self.x+170,self.y+90,"积分："..self.数据[1].积分)
zts:置颜色(0xFFFFFFFF):显示(self.x+170,self.y+120,"参加人数："..self.数据[1].参加人数)
zts:置颜色(0xFFFFFFFF):显示(self.x+170,self.y+150,"击杀人数："..self.数据[1].击杀人数)

end



return 场景类_帮战



